<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>带平滑效果的js返回顶部特效</title>
<link href="css/top.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/top.js"></script>
</head>
<body>
<h1 style="text-align:center;padding:35px;">先拖动滚动条，再查看右下角的小火箭，并点击试试</h1>
<a href="#" onclick="gotoTop();return false;" class="totop"></a>
</body>
</html>
